package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IEvaluateActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.IssueEvaluateRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.EvaluateEntity;

import java.util.List;

/*
 *
 *
 *   data:2018/10/1510:54
 *
 */public class EvaluateActivityModel implements IEvaluateActivityModel{
     private NetService netService;

    public EvaluateActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initList(String orderId, HttpResultSubscriber<List<EvaluateEntity>> subscriber) {
        netService.evaluate(orderId, subscriber);
    }

    @Override
    public void issueEvaluate(IssueEvaluateRequest request, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.issueEvaluate(request, subscriber);
    }
}
